<link rel="stylesheet" href="<?= $this->baseUrl() ?>/css/listing.css" />
<?php
$this->title = "Rincian Pembeli";
$this->headTitle($this->title);
?>
<table>
    <tr>
        <td colspan="2">
       <img src="<?php echo $this->baseUrl(); ?>/images/avatar/<?php echo $this->buyer['path'];?> " width="50" height="50"/>
        </td>
    </tr><tr>
    <td class="left">Nama</td><td class="right"><?php echo $this->escape($this->buyer['name']);?></td>
    </tr><tr>
    <td class="left">Username</td><td class="right"><?php echo $this->escape($this->buyer['username']);?></td>
    </tr><tr>
    <td class="left">Email</td><td class="right"><?php echo $this->escape($this->buyer['email']);?></td>
    </tr><tr>
    <td class="left">HandPhone</td><td class="right"><?php echo $this->escape($this->buyer['mobile_phone']);?></td>
    </tr><tr>
    <td class="left">Telefon Rumah</td><td class="right"><?php echo $this->escape($this->buyer['home_phone']);?></td>
    </tr><tr>
    <td class="left">Alamat</td><td class="right"><?php echo $this->escape($this->buyer['address']);?></td>
    </tr><tr>
    <td class="left">Kota</td><td class="right"><?php echo $this->escape($this->buyer['city']);?></td>
    </tr><tr>
    <td class="left">Provinsi</td><td class="right"><?php echo $this->escape($this->buyer['province']);?></td>
    </tr><tr>
    <td class="left">Kode Pos</td><td class="right"><?php echo $this->escape($this->buyer['zip']);?></td>
    </tr><tr>
    <td class="left">Tanggal Lahir</td><td class="right"><?php echo $this->escape($this->buyer['date_birth']);?></td>
    </tr>
    <tr>
    <td class="left">Umur</td><td class="right"><?php echo $this->escape($this->additional->birthday($this->buyer['date_birth']));?> Thn</td>
    </tr><tr>
    <td class="left">Jenis Kelamin</td><td class="right"><?php echo $this->escape($this->buyer['gender']);?></td>
    </tr><tr>
    <td class="left">status</td><td class="right"><?php if($this->escape($this->buyer['active'])==1){echo "Aktif";}
    else{echo "Belum Aktif";}?></td>
    </tr><tr><td>
        <a href="<?php echo $this->url(array('controller'=>'buyer',
            'action'=>'list'));?>"> <img class="listed" src="<?php echo $this->baseUrl(); ?>/images/icons/arrow_left.png" alt="delete"/>
                  </a>
    </td>
    <td><a href="<?php echo $this->url(array('controller'=>'buyer',
        'action'=>'edit','id'=>$this->buyer['buyer_id']));?>"> <img class="listed" src="<?php echo $this->baseUrl(); ?>/images/icons/pencil.png" alt="edit"/>
                  </a></td>
    </tr>
</table>